/*

* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Smart-Shop开源商城系统/ Java商城-首选电商平台系统 请务必保留此注释头信息
* |     开源地址: https://gitee.com/ningbo-qishan/gruul-mall
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     可正常分享和学习源码,未经授权 不可商用！
* |     商业版中台购买/开源版商业授权 联系技术客服
* |     官网:  https://www.73app.cn/
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Copyright (c) 2016-2999 宁波启山智软科技有限公司
* |     版权所有 ,侵权必究！
* ------------------------------------------------------------------------

*/
package com.medusa.gruul.live.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @Description: 直播信息 vo
 * @Author: zhaokw
 * @Date : 2020/04/01 11:11
 */
@Data
@ApiModel(value = "LiveVo对象", description = "直播信息")
public class LiveVo {
    private Long id;

    @ApiModelProperty(value = "租户id")
    private String tenantId;

    @ApiModelProperty(value = "商铺id")
    private String shopId;

    @ApiModelProperty(value = "直播房间号")
    private String roomId;

    @ApiModelProperty(value = "直播名称")
    private String liveName;

    @ApiModelProperty(value = "开播时间")
    private Date startTime;

    @ApiModelProperty(value = "停播时间")
    private Date endTime;

    @ApiModelProperty(value = "主播信息")
    private String anchor;

    @ApiModelProperty(value = "观看量")
    private Long viewCount;

    @ApiModelProperty(value = "点赞量")
    private Long likeCount;

    @ApiModelProperty(value = "状态(默认未开始，101--直播中，102--未开始，103--已结束，104--禁播，105--暂停中，106--异常，107--已过期)")
    private Integer status;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;


    @ApiModelProperty(value = "背景图")
    private String coverImg;

    @ApiModelProperty(value = "分享卡片图")
    private String shareImg;

    @ApiModelProperty(value = "主播头像图")
    private String anchorImg;


    @ApiModelProperty(value = "首页排序")
    private Long sort;

    @ApiModelProperty(value = "是否首页 0否 1是")
    private Integer firstFlag;


    public Long getSort() {
        if (null == this.sort) {
            return -1L;
        }

        return this.sort;
    }

}
